/**
 * 系统管理路由
 */
export default [
  {
    path: '/system',
    meta: { requiresAuth: true },
    children: [
      {
        path: 'users',
        name: 'SystemUsers',
        component: () => import('@/views/system/Users.vue'),
        meta: { title: '用户管理' }
      },
      {
        path: 'roles',
        name: 'SystemRoles',
        component: () => import('@/views/system/Roles.vue'),
        meta: { title: '角色管理' }
      },
      {
        path: 'departments',
        name: 'SystemDepartments',
        component: () => import('@/views/system/Departments.vue'),
        meta: { title: '部门管理' }
      },
      {
        path: 'permissions',
        name: 'SystemPermissions',
        component: () => import('@/views/system/Permissions.vue'),
        meta: { title: '权限管理' }
      },
      {
        path: 'approvals',
        name: 'SystemApprovals',
        component: () => import('@/views/system/Approvals.vue'),
        meta: { title: '审批管理' }
      },
      {
        path: 'settings',
        name: 'SystemSettings',
        component: () => import('@/views/system/Settings.vue'),
        meta: { title: '系统设置' }
      },
      {
        path: 'backup',
        name: 'SystemBackup',
        component: () => import('@/views/system/Backup.vue'),
        meta: { title: '备份管理' }
      },
      {
        path: 'monitor',
        name: 'SystemMonitor',
        component: () => import('@/views/system/Monitor.vue'),
        meta: { title: '系统监控' }
      },
      {
        path: 'help',
        name: 'SystemHelp',
        component: () => import('@/views/system/Help.vue'),
        meta: { title: '帮助中心' }
      },
      {
        path: 'dictionary',
        name: 'SystemDictionary',
        component: () => import('@/views/system/Dictionary.vue'),
        meta: { title: '数据字典' }
      },
      {
        path: 'logs',
        name: 'SystemLogs',
        component: () => import('@/views/system/Logs.vue'),
        meta: { title: '日志管理' }
      },
      {
        path: 'performance',
        name: 'SystemPerformance',
        component: () => import('@/views/system/Performance.vue'),
        meta: { title: '性能监控' }
      },
      {
        path: 'user-settings',
        name: 'SystemUserSettings',
        component: () => import('@/views/system/UserSettings.vue'),
        meta: { title: '个人设置' }
      },
      {
        path: 'risk-management',
        name: 'SystemRiskManagement',
        component: () => import('@/views/system/RiskManagement.vue'),
        meta: { title: '风险管理' }
      },
      {
        path: 'api-test',
        name: 'SystemAPITest',
        component: () => import('@/views/system/APITestPlatform.vue'),
        meta: { title: 'API测试平台' }
      },
      {
        path: 'log-analytics',
        name: 'SystemLogAnalytics',
        component: () => import('@/views/system/LogAnalytics.vue'),
        meta: { title: '日志分析' }
      },
      {
        path: 'datasource',
        name: 'SystemDataSource',
        component: () => import('@/views/system/DataSource.vue'),
        meta: { title: '数据源管理' }
      },
      {
        path: 'backgrounds',
        name: 'SystemBackgrounds',
        component: () => import('@/views/system/DynamicBackgrounds.vue'),
        meta: { title: '动态背景' }
      },
      {
        path: 'background-preview',
        name: 'BackgroundPreview',
        component: () => import('@/views/system/BackgroundPreview.vue'),
        meta: { title: '背景预览', requiresAuth: true }
      }
    ]
  }
]

